﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=8;IE=11;IE=8,chrome=1" />
    <title>新的流水卡查看跳转页面</title>
    <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
</head>
<body>
</body>
</html>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/ReferenceJsLib.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/jquery-1.8.2.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/crypto-js.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/secret.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<script type="text/javascript">
    var page = {
        init: function () {
            var containerDatas = getParam("containerData");
            //            var uname = getParam("uname"); //员工号
            if (containerDatas === null) {
                return;
            }
            var params = [];
            var listDatas = {};
            if (containerDatas != "") {
                containerDatas = Decrypt(containerDatas);
                listDatas = JSON.parse(containerDatas);
                for (var i = 0; i < listDatas.containeridList.length; i++) {
                    params.push({ containerid: listDatas.containeridList[i], workflowid: listDatas.workflowid });
                }
            } else {
                params.push({ containerid: getParam("containerid"), workflowid: getParam("workflowid") });
                listDatas.IsBomPrint = getParam("IsBomPrint");
            }
            $.ajax({
                type: "Post",
                url: getRootPath() + "/Ashx/CommonHandler.ashx",
                data: { action: "viewPrintPage", params: JSON.stringify(params), isBomPrint: listDatas.IsBomPrint },
                cashe: false,
                async: true,
                dataType: "json",
                beforeSend: function () {
                    $.messager.progress({ text: '', msg: '处理中...' });
                },
                success: function (result) {
                    $.messager.progress('close');
                    if (!result.Result) {
                        displayMessage(result.Message, false);
                        return;
                    }
                    location.href = result.ReturnData;
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    $.messager.progress('close');
                    displayMessage(XMLHttpRequest.responseText, false);
                }
            });
        }
    };

    $(function () {
        page.init();
    });
</script>
